#include <stdio.h>

int isPalindrome(int arr[],int size)
{
    for(int i = 0,j = size - 1; i < j; i++, j-- )
    {
        if(arr[i] != arr[j])
            return 0;
    }
    return 1;
}

int main(int argc, char const *argv[])
{
    int arr1[] = {1,2,2,1};
    int arr2[] = {1,2,3};
    
    printf("%d\n",isPalindrome(arr1,sizeof(arr1)/sizeof(int)));
    printf("%d\n",isPalindrome(arr2,sizeof(arr2)/sizeof(int)));

    return 0;
}
